#ifndef ARCHIVE_IBINARYSTREAMBUF
#define ARCHIVE_IBINARYSTREAMBUF
#include "Archive/IFile.hpp"
#include <sstream>
namespace Archive{
class ibinarystreambuf : public std::streambuf
{
public:
	ibinarystreambuf(IFile::ptr pFile)
	{
		char* p = reinterpret_cast<char*>(pFile->data());
		this->setg(p,p,p+pFile->size());

		m_pFile = pFile;
	}
private:
	IFile::ptr m_pFile;
};
}//Archive
#endif
